import type { IContentConfig } from '@/components/page-content/type';

const contentConfig: IContentConfig = {
  header: {
    title: '部门列表',
    btnText: '添加部门'
  },
  pageName: 'department',
  tableData: [
    { type: 'selection', label: '选择', prop: 'selection' },
    { type: 'index', label: '序号', width: 80, prop: 'index' },
    { type: 'normal', label: '部门名称', prop: 'name', width: 180 },
    { type: 'normal', label: '部门领导', prop: 'leader', width: 180 },
    { type: 'custom', label: '上级部门', prop: 'parentId', width: 180, slotName: 'handlerId' },
    { type: 'timer', label: '创建时间', prop: 'createAt' },
    { type: 'timer', label: '更新时间', prop: 'updateAt' },
    { type: 'handler', label: '操作', width: 180, prop: 'handler' }
  ]
};

export default contentConfig;
